layui.use(['layer', 'form', 'ax', 'table', 'admin', 'laydate'], function () {
    var $ = layui.jquery;
    var $ax = layui.ax;
    var form = layui.form;
    var admin = layui.admin;
    var layer = layui.layer;

    // 表单提交事件
    form.on('submit(SysDictGroupModuleSubmit)', function (data) {
        var ajax = new $ax(Feng.ctxPath + "/sysDict/sysDictGroupSave", function (res) {
            Feng.success("添加成功！");
            admin.putTempData('formOk', true);
            admin.closeThisDialog();
        }, function (res) {
            Feng.error("添加失败！" + res.responseJSON.message)
        });
        ajax.set(data.field);
        ajax.start();
    });
});